home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / clocks / wrldclka.lzh / README.TXT < prev    next >
Text File  |  1995-03-03  |  20KB  |  440 lines

  1.                      World Clock 1.0a by Dan Wilga
  2.                   Copyright © 1995, Gribnif Software
  3.                          All Rights Reserved.
  4.  
  5. This program may be distributed freely, provided it and this text file are
  6. unmodified.
  7.  
  8. See the end of this file for the revision history.
  9.  
  10. ChocolateWare
  11. -------------
  12.  
  13. This program is ChocolateWare. If you find it useful, you are encouraged
  14. to show your appreciation by sending a quantity of chocolate candy to the
  15. address below. What kind and how much are up to you. Please just limit
  16. yourself to chocolate, either with or without nuts.
  17.  
  18.   Dan Wilga
  19.   Gribnif Software
  20.   PO Box 779
  21.   Northampton, MA  01061
  22.  
  23.      GEnie: GRIBNIF
  24.   Internet: gribnif@genie.geis.com
  25.  
  26.  
  27. Too Much Time On My Hands
  28. -------------------------
  29.  
  30. I often need to call someone in some remote corner of the globe (I've
  31. always hated that expression because, as you probably know, globes don't
  32. have corners) and I find myself wondering if I'm going to be calling at
  33. some rediculously early (or late) time. Most of Europe is easy for me to
  34. remember, but I've already found out that calling an Australian at 5:00 on
  35. Saturday morning is not an acceptable thing to do.
  36.  
  37. I looked around and could not find a program that suited my needs: I wanted
  38. a picture of the world, not just a text list of cities that are probably
  39. nowhere near the place I really want to call. Of course, in order to keep
  40. track of things accurately, a world clock also needs to have an idea about
  41. daylight savings, and not just assume everyone uses the same method.
  42.  
  43. [Bored yet? If so, you can skip ahead to the next section. I would have
  44. already, y'know.]
  45.  
  46. Well, I couldn't find anything that fit the bill, or even came close.  So,
  47. I set about creating my own program. The first thing was to find a map. OK,
  48. that was the easy part. Next, I wanted it to be scalable to any size, so I
  49. used Convector Professional to vectorize the map and save it as a GEM file.
  50.  
  51. Fortunately, the map I used employs what is probably the most common method
  52. for stretching the continents so that the map of our spherical globe will
  53. end up flat: it's called Mercator's Projection. Unfortunately, it took more
  54. hours of research in the local library than I care to mention to find out
  55. what the mathematical relationship between latitude and map location are
  56. when using this projection. But I finally found a simple formula.
  57.  
  58. Along the way, I also came across an invaluable book called "The
  59. International Atlas" (see the bibliography at the end of this file), which
  60. not only gives the coordinates of thousands of cities in the world, but
  61. also gives very precise information about how each country (and even each
  62. region within the country) handles daylight savings.
  63.  
  64. Now I just had to write a program to display the map in a useful way, and
  65. pop a list of cities into a text file. World Clock is the result.
  66.  
  67.  
  68. Setting it Up
  69. -------------
  70.  
  71. World Clock works as a program or a desk accessory. It works in any
  72. resolution, and probably with any graphics card. It also works with
  73. multitasking environments like Geneva, MultiTOS, and MagiC.
  74.  
  75. To run it as a program, these files are necessary:
  76.  
  77.   WORLDCLK.PRG          Program
  78.   WORLDCLK.RSC          Resource file
  79.   WORLDCLK.DAT          Data file with cities and other preferences
  80.   WORLDCLK.GEM          The map
  81.   
  82. There is also a second map called DETAILED.GEM. You can use this in place
  83. of WORLDCLK.GEM by renaming WORLDCLK.GEM to something else (like
  84. LOWREZ.GEM) and then renaming DETAILED.GEM to WORLDCLK.GEM. The
  85. disadvantage to DETAILED.GEM is that it takes more memory to load (just
  86. look at the difference in the file sizes) and whenever the window redraws,
  87. it may redraw more slowly depending on your setup.
  88.  
  89. To run it as a desk accessory, you would simply rename WORLDCLK.PRG to
  90. WORLDCLK.ACC and put it (along with the other files) in the same directory
  91. as all your other desk accessories.
  92.  
  93. In order to prevent too much clutter, you can also put everything but the
  94. WORLDCLK.ACC file into a folder called WORLDCLK. For instance, if your desk
  95. accessories load from C:, you would put WORLDCLK.ACC in C:\, and put the
  96. rest of the files in a folder called C:\WORLDCLK\.
  97.  
  98. The only functional difference between using World Clock as a desk
  99. accessory versus using it as a program is that when used as a desk
  100. accessory, World Clock will only allow you to add 10 places to the list in
  101. one session.
  102.  
  103.  
  104. Running it
  105. ----------
  106.  
  107. Once World Clock is running, there is one thing you need to do in order to
  108. configure it for the first time:
  109.  
  110.                                 IMPORTANT
  111.                                 ---------
  112.                                 
  113. Before World Clock can be of any real use to you, you need to tell it where
  114. you live. Do this by clicking on the "?" icon in the lower right of the
  115. window. This will give you a popup menu. Select the "Edit Places" option.
  116.  
  117. In the "Edit Places" dialog, you will see that some information about the
  118. various places World Clock knows about by default. What you need to do is
  119. choose a place which is in the same time zone as you currently are, and
  120. uses the same method for daylight savings.
  121.  
  122. Scroll though the list of places by using the "+" and "-" buttons next to
  123. the name of the current place. Don't worry if you live in Florida and the
  124. closest thing you can find is New York. That's good enough for now.
  125.  
  126. To help you find a place which is close to you, here is a West to East
  127. list of some of the cities, presented by region:
  128.  
  129.            USA: Honolulu, HI            Anchorage, AK
  130.                 Los Angeles, CA         Denver, CO
  131.                 Dallas, TX              Chicago, IL
  132.                 Indianapolis, IN        New York, NY
  133.                 
  134.         Canada: Vancouver, BC           Edmonton, AB
  135.                 Toronto, ON             Montréal, QC
  136.                 Halifax, NS             St. John's, NF
  137.  
  138.         Europe: Reykjavík               Belfast
  139.                 Glasgow                 Madrid
  140.                 London                  Paris
  141.                 Amsterdam               Roma (Rome)
  142.                 Berlin                  Athinai (Athens)
  143.                 Helsingfors (Helsinki)  Kijev
  144.                 Moskva (Moscow)         Volgograd (Stalingrad)
  145.                 
  146.      Australia: Perth                   Adelaide
  147.                 Melbourne               Brisbane
  148.                 Sydney
  149.  
  150. When you have found a place that is in the same time zone and uses the same
  151. emthod for daylight savings, select the "Here" button. This indicates that
  152. the place you chose should be used for computing other times in the world.
  153. When finished, select the "Done" button.
  154.  
  155. If you can't find a place which is close to where you are, refer to the
  156. section about the "Edit Places" dialog, for more information on how to add
  157. new places to the list.
  158.  
  159. Now it gets interesting. On the map you will notice that a number of
  160. locations have either a diamond (on a monochrome monitor) or a red plus
  161. sign (on a color monitor). If you move the mouse arrow over one of these
  162. markers and press the left mouse button, a dialog will pop up and tell you
  163. what time it is in that place. If you either let go of the mouse or drag
  164. the pointer away from a place, the popup will disappear.
  165.  
  166.  
  167. More Features in the Main Window
  168. --------------------------------
  169.  
  170. As you move the mouse around the main window with the left mouse button
  171. pressed, you may also notice a coordinate display in the lower right of the
  172. window. This tells you the latitude and longitude the mouse pointer is
  173. currently at, and gets updated as long as the mouse button is pressed.
  174. This feature can be turned off in the "Options" dialog (see below).
  175.  
  176. By default, World Clock shows the local time in the mover bar of the
  177. window.  This can be turned off in the "Options" dialog, as well.
  178.  
  179. To conserve screen space, World Clock uses two icons in the lower right
  180. corner of its window. You've already seen what the "?" gadget does (it
  181. gives you a menu of choices), now it's time for you to try the resize
  182. gadget to